import React, { Component } from 'react'
import { high } from './index'
//高阶组件使用
class Num extends Component {
    render() {
        const { num, add } = this.props
        return (
            <div>
                {num}
                <button onClick={add}>aniu</button>
            </div>
        )
    }
}
Num = high(Num)
export default Num